
import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.access.DataContext;
import ssma.Tipoaccion;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Victor Avalos
 */
public class TestMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ObjectContext context = DataContext.createDataContext();
               
        Tipoaccion tipoaccion= context.newObject(Tipoaccion.class);
        
        tipoaccion.setDescripcion("tipo de prueba");
        tipoaccion.setEliminado(Boolean.FALSE);
        tipoaccion.setNombre("PRUEBA");
        
        context.commitChanges();
        // TODO code application logic here
    }
    
}
